home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / bash_114.zip / bash-1.14.2 / lib / malloclib / Makefile < prev    next >
Makefile  |  1994-05-19  |  2KB  |  54 lines

  1. # Copyright (C) 1991 Free Software Foundation, Inc.
  2. # This file is part of the GNU C Library.
  3.  
  4. # The GNU C Library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Library General Public License
  6. # as published by the Free Software Foundation; either version 2 of
  7. # the License, or (at your option) any later version.
  8.  
  9. # The GNU C Library is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. # Library General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with the GNU C Library; see the file COPYING.LIB.  If
  16. # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. # Cambridge, MA 02139, USA.
  18.  
  19. # Makefile for standalone distribution of malloc.
  20.  
  21. srcdir = .
  22. VPATH = .:$(srcdir)
  23.  
  24. all: libmalloc.a
  25.  
  26. sources = calloc.c cfree.c free.c malloc.c mcheck.c morecore.c \
  27.       memalign.c mstats.c mtrace.c realloc.c valloc.c
  28. objects = calloc.o cfree.o free.o malloc.o mcheck.o morecore.o \
  29.       memalign.o mstats.o mtrace.o realloc.o valloc.o
  30. headers = malloc.h getpagesize.h
  31.  
  32. libmalloc.a: $(objects)
  33.     ar crv $@ $(objects)
  34.     ranlib $@
  35.  
  36. .c.o:
  37.     $(CC) $(CFLAGS) $(CPPFLAGS) -I. -c $< $(OUTPUT_OPTION)
  38.  
  39. .PHONY: clean realclean malloc-clean malloc-realclean
  40. clean malloc-clean:
  41.     -rm -f libmalloc.a $(objects) core
  42. realclean malloc-realclean: clean
  43.     -rm -f TAGS tags *~
  44.  
  45. calloc.o: malloc.h
  46. free.o: malloc.h
  47. malloc.o: malloc.h
  48. mcheck.o: malloc.h
  49. memalign.o: malloc.h
  50. mstats.o: malloc.h
  51. mtrace.o: malloc.h
  52. realloc.o: malloc.h
  53. valloc.o: malloc.h getpagesize.h
  54.